<template>
  <!-- 个人中心 我的收藏 -->
  <div id="mysc">
    <div class="top">
      <div class="left">
        <img src="../../assets/image/3_1_0_select_u.png" alt />
        <span>全选</span>
      </div>
      <div class="right">
        <span>加入购物车</span>
        <span>删除</span>
      </div>
    </div>
    <div class="bot">
      <div class="top">
        <span style="margin-left:40px">商品信息</span>
        <span style="margin-left:300px">单价</span>
        <span style="margin-right:40px">操作</span>
      </div>
      <ul>
        <li v-for="(item ,index) in scList" :key="index">
          <div class="left_1">
            <img src="../../assets/image/3_1_0_select_s.png" alt />
            <img :src="item.imgUrl" alt />
          </div>
          <div class="left_2">
            <span>{{item.goodsName}}</span>
            <span>{{item.goodsType}}</span>
          </div>
          <div class="right_1">
            <span>{{item.goodsPrice}}元/件</span>
          </div>
          <div class="right_2">
            <span>加入购物车</span>
            <span>删除</span>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      selectIndex: -1, //选择银行
      cancel: require("../../assets/image/3_1_0_select_u.png"), //未选中时的小图标
      notarize: require("../../assets/image/3_1_0_select_s.png"), //选中时的小图标
      scList: [
        {
          imgUrl: "", //商品图片展示
          goodsName:
            "MSA梅思安 标准型安全帽,黄色PE帽壳,一指键帽衬,PVC吸汗带,D型下颏带", //商品名称
          goodsType: "型号：10146453", //商品型号
          goodsPrice: 100 //商品价格
        },
        {
          imgUrl: "", //商品图片展示
          goodsName:
            "MSA梅思安 标准型安全帽,黄色PE帽壳,一指键帽衬,PVC吸汗带,D型下颏带", //商品名称
          goodsType: "型号：10146453", //商品型号
          goodsPrice: 100 //商品价格
        },
        {
          imgUrl: "", //商品图片展示
          goodsName:
            "MSA梅思安 标准型安全帽,黄色PE帽壳,一指键帽衬,PVC吸汗带,D型下颏带", //商品名称
          goodsType: "型号：10146453", //商品型号
          goodsPrice: 100 //商品价格
        },
        {
          imgUrl: "", //商品图片展示
          goodsName:
            "MSA梅思安 标准型安全帽,黄色PE帽壳,一指键帽衬,PVC吸汗带,D型下颏带", //商品名称
          goodsType: "型号：10146453", //商品型号
          goodsPrice: 100 //商品价格
        }
      ] //收藏商品列表
    };
  }
};
</script>

<style lang="scss" scoped>
.top {
  height: 50px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 3px 5px 0px rgba(204, 196, 196, 0.15);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  .left {
    display: flex;
    align-items: center;
    width: 60px;
    justify-content: space-between;
    span {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: rgba(77, 77, 77, 1);
      cursor: pointer;
    }
  }
  .right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 140px;
    & span:nth-of-type(1) {
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      color: rgba(254, 44, 74, 1);
      cursor: pointer;
    }
    & span:nth-of-type(2) {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: rgba(77, 77, 77, 1);
      cursor: pointer;
    }
  }
}
.bot {
  min-height: 480px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 3px 5px 0px rgba(204, 196, 196, 0.15);
  .top {
    border-bottom: 1px solid rgba(230, 230, 230, 1);
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    span {
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: 400;
    }
  }
  ul {
    list-style: none;
    padding: 0 12px;
    margin: 0;
    margin-top: -20px;
    li {
      border-bottom: 1px solid rgba(230, 230, 230, 1);
      height: 120px;
      display: flex;
      align-items: center;
      .left_1 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 120px;
        margin-right: 20px;
        & img:nth-of-type(2) {
          width: 80px;
          height: 80px;
          background: rgba(255, 255, 255, 1);
          border: 1px solid rgba(230, 230, 230, 1);
        }
      }
      .left_2 {
        width: 300px;
        display: flex;
        flex-direction: column;
        & span:nth-of-type(1) {
          font-size: 14px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: rgba(61, 61, 61, 1);
          margin-bottom: 14px;
          margin-top: -10px;
        }
        & span:nth-of-type(2) {
          font-size: 12px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: rgba(127, 127, 127, 1);
        }
      }
      .right_1 {
        margin-left: 156px;
        span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: rgba(254, 44, 74, 1);
        }
      }
      .right_2 {
        margin-left: 160px;
        display: flex;
        flex-direction: column;
        align-items: center;
        & span:nth-of-type(1) {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: rgba(254, 44, 74, 1);
          cursor: pointer;
          margin-bottom: 10px;
        }
        & span:nth-of-type(2) {
          font-size: 12px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: rgba(128, 128, 128, 1);
          cursor: pointer;
        }
      }
    }
  }
}
</style>